package com.ld.rightsSystem.dto;

import com.ld.rightsSystem.pojo.TUser;

import java.util.Date;
import java.util.List;

public class TUserDTO extends TUser {
    private List<Long> roleIds;

    public TUserDTO() {
    }

    public TUserDTO(Long userId, String userName, String phone, String password, List<Long> roleIds) {
        super(userId, userName, phone, password);
        this.roleIds = roleIds;
    }

    public TUserDTO(String createBy, Date createTime, String updateBy, Date updateTime, String remark, int status, int delStatus, Long userId, String userName, String phone, String password, List<Long> roleIds) {
        super(createBy, createTime, updateBy, updateTime, remark, status, delStatus, userId, userName, phone, password);
        this.roleIds = roleIds;
    }

    public List<Long> getRoleIds() {
        return roleIds;
    }

    public void setRoleIds(List<Long> roleIds) {
        this.roleIds = roleIds;
    }

    @Override
    public String toString() {
        return "TUserDTO{" +
                "roleIds=" + roleIds +
                '}';
    }
}
